import {createApp} from 'vue'
import App from './App.vue'
import "./style"
import "./assets/iconfont/iconfont.js"
import commonVue from './mixin/common.vue'
// import BaseComponents from './components/index'
import {setupRouter} from "@/router"
import { setupStore } from '@/store';
import naive from 'naive-ui'
import 'animate.css/animate.min.css'

async function Start() {
    const app = createApp(App);
    // 混入设置
    app.mixin(
        commonVue
    )
    // app.use(BaseComponents)
    app.use(naive)
    // 状态管理设置
    setupStore(app)
    // 路由设置
    setupRouter(app)
    app.mount('#app');
}

Start()
